package com.hymjweb.demo.hymj.finance_manage.repayment.detail.service;

import com.hymjweb.demo.framework.sys.BaseService;
import com.hymjweb.demo.hymj.finance_manage.repayment.detail.bean.CwRepaymentDetailPojo;
import com.hymjweb.demo.hymj.finance_manage.repayment.detail.mapper.CwRepaymentDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CwRepaymentDetailService extends BaseService {

    @Autowired
    private CwRepaymentDetailMapper cwRepaymentDetailMapper;

    @Transactional(rollbackFor = {Exception.class})
    public int batchInsert(List<CwRepaymentDetailPojo> detailPojoList) {
        return cwRepaymentDetailMapper.batchInsert(detailPojoList);
    }
}
